package org.seedltd.upms.model.detection.form;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.seedltd.core.validation.Save;

import lombok.Getter;
import lombok.Setter;

/**
 *
 * 订单状态节点表单
 * 
 * @author laizuan
 * @version 1.0
 * @since 2021/08/02
 */
@Getter
@Setter
public class DetectionOrderTracingForm {
    /**
     * 订单主键
     */
    @NotNull(message = "订单主键不能为空", groups = {Save.class})
    private Long orderId;

    /**
     * 节点代码
     */
    @Length(message = "节点代码长度不能超过4个字符", max = 4, groups = {Save.class})
    @NotBlank(message = "节点代码不能为空", groups = {Save.class})
    private String flowCode;

    /**
     * 节点描述
     */
    @Length(message = "节点描述长度不能超过15个字符", max = 15, groups = {Save.class})
    @NotBlank(message = "节点描述不能为空", groups = {Save.class})
    private String flowDesc;

    /**
     * 节点时间
     */
    private Date flowTime;

    /**
     * 备注说明
     */
    @Length(message = "备注说明长度不能超过255个字符", max = 255, groups = {Save.class})
    private String remark;

    /**
     * 操作人
     */
    @Length(message = "操作人长度不能超过60个字符", max = 60, groups = {Save.class})
    private String operator;

    /**
     * 排序
     */
    private Integer sortNo;
}
